﻿@model Admin.Models.TblHotel

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>TblHotel</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.HotelID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HotelID)
            @Html.ValidationMessageFor(model => model.HotelID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HotelName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HotelName)
            @Html.ValidationMessageFor(model => model.HotelName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.StarRating)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StarRating)
            @Html.ValidationMessageFor(model => model.StarRating)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NumberOfRooms)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NumberOfRooms)
            @Html.ValidationMessageFor(model => model.NumberOfRooms)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CountryID, "TblCountry")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CountryID", String.Empty)
            @Html.ValidationMessageFor(model => model.CountryID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ProvinceID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ProvinceID)
            @Html.ValidationMessageFor(model => model.ProvinceID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CityID, "TblCity")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CityID", String.Empty)
            @Html.ValidationMessageFor(model => model.CityID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TypeOfAccommodation)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TypeOfAccommodation)
            @Html.ValidationMessageFor(model => model.TypeOfAccommodation)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.StreetAddress)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StreetAddress)
            @Html.ValidationMessageFor(model => model.StreetAddress)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MainPhone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MainPhone)
            @Html.ValidationMessageFor(model => model.MainPhone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContactNameID, "TblUserProfile")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ContactNameID", String.Empty)
            @Html.ValidationMessageFor(model => model.ContactNameID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsActive)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsActive)
            @Html.ValidationMessageFor(model => model.IsActive)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LinkImage)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LinkImage)
            @Html.ValidationMessageFor(model => model.LinkImage)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Longtitue)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Longtitue)
            @Html.ValidationMessageFor(model => model.Longtitue)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Latitue)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Latitue)
            @Html.ValidationMessageFor(model => model.Latitue)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
